package com.webside.series.service.impl;

 

 

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.base.baseservice.impl.AbstractService;
import com.webside.series.mapper.SeriesMapper;
import com.webside.series.model.Bdictionary;
import com.webside.series.model.SeriesEntity;
import com.webside.series.service.SeriesService;

@Service("seriesService")
public class SeriesServiceImpl  extends AbstractService<SeriesEntity, Long> implements SeriesService{

	@Autowired
	private SeriesMapper seriesMapper;
	
	//这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper
	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(seriesMapper);
	}

	@Override
	public List<SeriesEntity> typeByAllselect() {
		// TODO Auto-generated method stub
		return seriesMapper.typeByAllselect();
	}

	@Override
	public int updateSetSum(SeriesEntity record) {
		// TODO Auto-generated method stub
		return seriesMapper.updateSetSum(record);
	}

	@Override
	public int updateStatus(SeriesEntity record) {
		// TODO Auto-generated method stub
		return seriesMapper.updateStatus(record);
	}
  

	 
	
	 

}
